home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix018 < prev    next >
Internet Message Format  |  1995-02-13  |  2KB

  1. From theseas!Princeton.EDU!cek Sat, 26 Feb 94 01:54:24 EET
  2. Received: by kriton.UUCP (V1.16/Amiga)
  3.     id AA00000; Sat, 26 Feb 94 01:54:24 EET
  4. Received: by theseas.ntua.gr with UUCP; Wed, 23 Feb 1994 02:30:54 +0200
  5. Received: from eunet.EU.net by pythia.ics.forth.gr via FORTHnet with SMTP;
  6.     id AA21883 (5.65c/FORTH-ICS-3.0-MHS-7.0); Wed, 23 Feb 1994 02:11:47 +0200
  7. Received: from localhost (uunet@localhost) by eunet.EU.net (8.6.4/8.6.4) with UUCP id BAA23735 for ariadne!theseas!kriton!kyrimis; Wed, 23 Feb 1994 01:08:30 +0100
  8. Received: from Princeton.EDU by relay1.UU.NET with SMTP 
  9.     (5.61/UUNET-internet-primary) id AAwekm15991; Tue, 22 Feb 94 19:07:22 -0500
  10. Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.105/princeton)
  11.     id AA03584; Tue, 22 Feb 94 19:05:40 -0500
  12. Received: by cs.Princeton.EDU (4.1/1.105)
  13.     id AA29553; Tue, 22 Feb 94 19:05:38 EST
  14. Received: from A.GP.CS.CMU.EDU by cs.Princeton.EDU (4.1/1.105)
  15.     id AA29491; Tue, 22 Feb 94 19:04:56 EST
  16. Message-Id: <9402230004.AA29491@cs.Princeton.EDU>
  17. Date: Tue, 22 Feb 94 19:01:04 EST
  18. Errors-To: rayshade-request@cs.Princeton.EDU
  19. Remailed-Date: Tue Feb 22 19:05:01 EST 1994
  20. From: Mark.Maimone@A.GP.CS.CMU.EDU
  21. To: rayshade-users@CS.Princeton.EDU
  22. Subject: Z buffer fix
  23.  
  24.     Hi all,
  25.  
  26.     Thanks to Craig(!) for helping me out...  if you want to fix up the
  27. Z buffer code (so that it outputs Z values rather than eye<->object distances),
  28. add this one line (sob!) to the bottom of libshade/viewing.c:
  29.  
  30.         if (hitlist.nodes != 0)
  31.         {
  32.             Float d = hitlist.data[0].dist;
  33.  
  34. ***        d *= dotp(&Camera.dir, &hitlist.data[0].ray.dir);        ***
  35.             ZbufAdd (x, y, d); /* Save depth in Z buffer */
  36.             color->alpha = 1.;
  37.         }
  38.         else
  39.         {
  40.             color->alpha = 0.;
  41.         }
  42. }
  43.  
  44.                         Mark M.
  45.  
  46. ----------
  47. Administrivia: rayshade-request@cs.princeton.edu
  48. Mailing list: rayshade-users@cs.princeton.edu
  49.  
  50.